package models_report

import (
	"fmt"
	"longmen/server/pkg/db/mysql/models"
)

type AscribeReport struct {
	ID          uint   `json:"id" gorm:"primaryKey;autoIncrement"`
	Platform    string `json:"platform" gorm:"type:varchar(32);not null"`
	AndroidId   string `json:"android_id" gorm:"type:varchar(255)"`
	PackageName string `json:"package_name" gorm:"type:varchar(255)"`
	Callback    string `json:"callback" gorm:"type:text"`
	Res         string `json:"res" gorm:"type:longtext"`
}

func (AscribeReport) TableName() string {
	return fmt.Sprintf("%sascribe_report", models.Prefix)
}
